package com.compus.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.compus.constant.OrderStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 预约车辆
 */
@Data
@TableName("tb_order")
public class Order {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "上传地点")
    private Long positionId;

    @Schema(description = "目的地id")
    private Long toPositionId;

    @Schema(description = "状态")
    private OrderStatus status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "乘坐的车辆id")
    private Long carId;

}
